package com;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;

public class MyStackTest {
	static ExecutorService epool = Executors.newFixedThreadPool(500);
	public static void main(String[] args) {
		final MyStack mystack = new MyStack();
		int i = 0;
		while((i++)<1000){
			final int j = i;
			epool.execute(new Runnable() {
				@Override
				public void run() {
					mystack.push("hwf"+j);
				}
			});
		}
		
	}
}
